package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WebsiteInfoMapper;
import com.ruoyi.system.domain.WebsiteInfo;
import com.ruoyi.system.service.IWebsiteInfoService;

/**
 * websiteInfoService业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-28
 */
@Service
public class WebsiteInfoServiceImpl implements IWebsiteInfoService 
{
    @Autowired
    private WebsiteInfoMapper websiteInfoMapper;

    /**
     * 查询websiteInfo
     * 
     * @param id websiteInfo主键
     * @return websiteInfo
     */
    @Override
    public WebsiteInfo selectWebsiteInfoById(Long id)
    {
        return websiteInfoMapper.selectWebsiteInfoById(id);
    }

    /**
     * 查询websiteInfo列表
     * 
     * @param websiteInfo websiteInfo
     * @return websiteInfo
     */
    @Override
    public List<WebsiteInfo> selectWebsiteInfoList(WebsiteInfo websiteInfo)
    {
        return websiteInfoMapper.selectWebsiteInfoList(websiteInfo);
    }

    /**
     * 新增websiteInfo
     * 
     * @param websiteInfo websiteInfo
     * @return 结果
     */
    @Override
    public int insertWebsiteInfo(WebsiteInfo websiteInfo)
    {
        return websiteInfoMapper.insertWebsiteInfo(websiteInfo);
    }

    /**
     * 修改websiteInfo
     * 
     * @param websiteInfo websiteInfo
     * @return 结果
     */
    @Override
    public int updateWebsiteInfo(WebsiteInfo websiteInfo)
    {
        return websiteInfoMapper.updateWebsiteInfo(websiteInfo);
    }

    /**
     * 批量删除websiteInfo
     * 
     * @param ids 需要删除的websiteInfo主键
     * @return 结果
     */
    @Override
    public int deleteWebsiteInfoByIds(Long[] ids)
    {
        return websiteInfoMapper.deleteWebsiteInfoByIds(ids);
    }

    /**
     * 删除websiteInfo信息
     * 
     * @param id websiteInfo主键
     * @return 结果
     */
    @Override
    public int deleteWebsiteInfoById(Long id)
    {
        return websiteInfoMapper.deleteWebsiteInfoById(id);
    }
}
